package com.iptv.grape.event.imp;

import com.iptv.grape.BaseActivity;
import com.iptv.grape.domain.UserInfo;
import com.iptv.grape.event.JSRequest;
import com.iptv.grape.event.proc.IWebViewMessageProc;
import com.iptv.grape.video.XMediaPlayer;

// 返回当前机顶盒用户信息给WebView
public class SendUserInfo implements IWebViewMessageProc {
    @Override
    public void init(JSRequest jsRequest) {

    }

    @Override
    public String procMessage(BaseActivity baseActivity, XMediaPlayer mediaPlayer) {
        return UserInfo.curUserInfo().toJson();
    }
}
